import Request from "@/utils/request.js"
let request = new Request().http

export const register = function(data) {
	return request({
		url: "/iot/tool/register",
		method: "POST",
		data: data,
		isToken: false
	})
}
export const login = function(data) {
	return request({
		url: "/login",
		method: "POST",
		data: data,
		isToken: false
	})
}
export const captchaImage = function() {
	return request({
		url: "/captchaImage",
		method: "get",
		isToken: false
	})
}
// 获取用户详细信息
export function getInfo() {
	return request({
		url: '/getInfo',
		method: 'get'
	})
}
// 退出方法
export function logout() {
	return request({
		url: '/logout',
		method: 'post'
	})
}
